<?php /* Smarty version Smarty-3.1.18, created on 2015-05-14 09:22:18
         compiled from "../application/views/admin/download_index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:6655646485553f8caa05625-49067793%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0db1d45efc153e54e179a00144f6d4752d68da84' => 
    array (
      0 => '../application/views/admin/download_index.tpl',
      1 => 1421436474,
      2 => 'file',
    ),
    'd6cb1c267a14fa287ed7ec0f330367b09e5e7b70' => 
    array (
      0 => '../application/views/admin/admin_header.tpl',
      1 => 1431439870,
      2 => 'file',
    ),
    '65b6964eb3614af6f3e368a7620c70c079326b59' => 
    array (
      0 => '../application/views/admin/tree.tpl',
      1 => 1431434051,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6655646485553f8caa05625-49067793',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'active' => 0,
    'username' => 0,
    'info' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5553f8caabb2f7_77844583',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5553f8caabb2f7_77844583')) {function content_5553f8caabb2f7_77844583($_smarty_tpl) {?><!DOCTYPE html>
<html>
<head>
	<title>机械电子学院网站后台管理系统</title>
	<meta charset="utf-8"/>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>
Public/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo base_url();?>
Public/css/index.css">
	<script charset="utf-8" src="<?php echo base_url();?>
kindeditor/kindeditor-min.js"></script>
	<script charset="utf-8" src="<?php echo base_url();?>
kindeditor/php/upload_json.php"></script>
	<script charset="utf-8" src="<?php echo base_url();?>
kindeditor/plugins/autoheight/autoheight.js"></script>
	<script>
		 KindEditor.ready(function(K) {
		 		var options = {
		 			width : '100%',
		 			height : '200px',
		 			items : ['source', '|', 'undo', 'redo', '|', 'justifyleft', 'justifycenter', 'justifyright',
 							'justifyfull', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
        					'italic', 'underline', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
        					'insertfile', 'table', 'hr','link', 'unlink', '|',],
        			autoHeightMode : true,
        			filterMode : false,
		 		}
                window.editor = K.create('textarea[name="Experience"]', options);
                window.editor = K.create('textarea[name="Research"]', options);
                window.editor = K.create('textarea[name="Description"]', options);
                window.editor = K.create('textarea[name="Prize"]', options);
                window.editor = K.create('textarea[name="SinglePage"]', options);
        });
	</script>
</head>
<body>
	<div class="navbar navbar-default navbar-fixed-top" style="background-color: #fff;border-color: #fff;">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="#" style="font-size: 20px;">CloudCMS</a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li <?php echo IsActive('admin',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('category/admin');?>
">后台首页</a>
					</li>
					<li <?php echo IsActive('document',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/document');?>
">内容管理</a>
					</li>
					<li <?php echo IsActive('category',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/category');?>
">栏目管理</a>
					</li>
					<li <?php echo IsActive('user',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/user');?>
">用户管理</a>
					</li>
					<li <?php echo IsActive('alumni',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/alumni');?>
">院友管理</a>
					</li>
					<li <?php echo IsActive('message',$_smarty_tpl->tpl_vars['active']->value);?>
>
						<a href="<?php echo site_url('/document/Judge?Id=104');?>
">留言管理</a>
					</li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li>
						<a href="#">欢迎你，<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</a>
					</li>
					<li>
						<a href="<?php echo site_url('admin/logout');?>
">注销登陆</a>
					</li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li>
						<a href="<?php echo base_url();?>
" target="__blank" style="color:#3071a9">网站首页</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="container panel" style="margin-top: 70px;padding-bottom: 20px;min-height:580px;">
	<?php if (!empty($_smarty_tpl->tpl_vars['info']->value)) {?>
	<?php echo $_smarty_tpl->getSubTemplate ("admin/admin_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<?php }?>
	
<h3>内容管理
	<div class="pull-right">
		<a href="<?php echo site_url(((string)$_smarty_tpl->tpl_vars['url']->value));?>
" class="btn btn-sm btn-success">
			添加新内容
		</a>
	</div>
</h3>

<div class="col-sm-3 content-sidebar">
<?php /*  Call merged included template "admin/tree.tpl" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("admin/tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '6655646485553f8caa05625-49067793');
content_5553f8caa5dc91_44686145($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); 
/*  End of included template "admin/tree.tpl" */?>
</div>
<div class="col-sm-9 content-main">
	<p class="current-column">
		当前栏目:<?php echo $_smarty_tpl->tpl_vars['cateNow']->value[0]['CateName'];?>

	</p>
	<div class="table-responsive">
		<table class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th style="width:5%;">排序</th>
					<th style="width:5%;">Id</th>
					<th style="width:50%;">文件名</th>
					<th style="width:10%;">时间</th>
					<th style="width:10%;text-align: center;">操作</th>
				</tr>
			</thead>
			<tbody>
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['Download']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
				<tr>
					<td style="text-align:center;">
						<input type="text" style="width:50px;height:20px;text-align:center;" name="<?php echo $_smarty_tpl->tpl_vars['v']->value['Id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['Sort'];?>
">
					</td>
					<td><?php echo $_smarty_tpl->tpl_vars['v']->value['Id'];?>
</td>
					<td><p style="margin: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width: 450px;"><?php echo $_smarty_tpl->tpl_vars['v']->value['Title'];?>
</p></td>
					<td><?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['v']->value['Time']);?>
</td>
					<td style="text-align: center;width: 10%;">
						<a href="<?php echo site_url("document/EditFilePage?Id=".((string)$_smarty_tpl->tpl_vars['v']->value['Id']));?>
" class="btn btn-xs btn-primary">编辑</a>
						<a href="javascript:void(0)" onclick="modal('<?php echo site_url("document/DeleteFile?Id=".((string)$_smarty_tpl->tpl_vars['v']->value['Id']));?>
')" class="btn btn-xs btn-danger">删除</a>
					</td>
				</tr>
				<?php } ?>
			</tbody>
		</table>
	</div>
</div>

	<?php echo $_smarty_tpl->getSubTemplate ("admin/admin_modal.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	</div>
	<script src="<?php echo base_url();?>
Public/js/jquery-1.11.1.min.js"></script>
	<script src="<?php echo base_url();?>
Public/bootstrap/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url();?>
Public/js/index.js"></script>
	    <script>
        function modal(href)
        {
        	$('#delete-url').attr('href',href);
            $('#myModal').modal();
        }
    </script>
	</body>
</html>
<?php }} ?>
<?php /* Smarty version Smarty-3.1.18, created on 2015-05-14 09:22:18
         compiled from "../application/views/admin/tree.tpl" */ ?>
<?php if ($_valid && !is_callable('content_5553f8caa5dc91_44686145')) {function content_5553f8caa5dc91_44686145($_smarty_tpl) {?><div class="tree">
		<ul id="root">
		    <?php  $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['k']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['category']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['k']->key => $_smarty_tpl->tpl_vars['k']->value) {
$_smarty_tpl->tpl_vars['k']->_loop = true;
?>
		    <li>
		        <label><a href="<?php if ($_smarty_tpl->tpl_vars['k']->value['Type']!='目录') {?><?php echo site_url("document/Judge?Id=".((string)$_smarty_tpl->tpl_vars['k']->value['Id']));?>
<?php } else { ?>javascript:;<?php }?>"><?php echo $_smarty_tpl->tpl_vars['k']->value['CateName'];?>
</a></label>
		        <?php if (!empty($_smarty_tpl->tpl_vars['k']->value['Child'])) {?>
		        <ul class="two">
		        <?php  $_smarty_tpl->tpl_vars['child'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['child']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['k']->value['Child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['child']->key => $_smarty_tpl->tpl_vars['child']->value) {
$_smarty_tpl->tpl_vars['child']->_loop = true;
?>
		            <li>
		            <label><a href="<?php if ($_smarty_tpl->tpl_vars['child']->value['Type']!='目录') {?><?php echo site_url("document/Judge?Id=".((string)$_smarty_tpl->tpl_vars['child']->value['Id']));?>
<?php } else { ?>javascript:;<?php }?>"><?php echo $_smarty_tpl->tpl_vars['child']->value['CateName'];?>
</a></label>
				<?php if (!empty($_smarty_tpl->tpl_vars['child']->value['Child'])) {?>
		        <ul class="two">
		        <?php  $_smarty_tpl->tpl_vars['cd'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cd']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['child']->value['Child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['cd']->key => $_smarty_tpl->tpl_vars['cd']->value) {
$_smarty_tpl->tpl_vars['cd']->_loop = true;
?>
		            <li><label><a href="<?php if ($_smarty_tpl->tpl_vars['cd']->value['Type']!='目录') {?><?php echo site_url("document/Judge?Id=".((string)$_smarty_tpl->tpl_vars['cd']->value['Id']));?>
<?php } else { ?>javascript:;<?php }?>"><?php echo $_smarty_tpl->tpl_vars['cd']->value['CateName'];?>
</a></label></li>
		            <?php } ?>
		        </ul>
		          <?php }?>
		            </li>
		            <?php } ?>
		        </ul>
		          <?php }?>
		    </li>
		    <?php } ?>
		</ul>	
	</div><?php }} ?>
